//
//  DeviceControlVC.h
//  FishTank
//
//  Created by Scott Zhu on 14/11/28.
//  Copyright (c) 2014年 Scott Zhu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "APIs.h"
#import "DeviceInfo.h"
#import "PeriodsSettingVC.h"
#import "AppDelegate.h"


@interface DeviceControlVC : UIViewController
@property (strong, nonatomic) DeviceInfo *deviceInfo;


@property (weak, nonatomic) IBOutlet UILabel *temperatureLabel;
@property (weak, nonatomic) IBOutlet UILabel *phLabel;
@property (weak, nonatomic) IBOutlet UIImageView *videoImage;


@property (weak, nonatomic) IBOutlet UIButton *lightButton;
@property (weak, nonatomic) IBOutlet UIButton *waterButton;
@property (weak, nonatomic) IBOutlet UIButton *videoButton;
@property (weak, nonatomic) IBOutlet UIButton *photoButton;
@property (weak, nonatomic) IBOutlet UIButton *disinfectButton;
@property (weak, nonatomic) IBOutlet UIButton *autoControlButton;

@property (weak, nonatomic) IBOutlet UIView *temperatureBlock;
@property (weak, nonatomic) IBOutlet UIView *phBlock;
@property (weak, nonatomic) IBOutlet UIView *lightView;
@property (weak, nonatomic) IBOutlet UIView *waterView;
@property (weak, nonatomic) IBOutlet UIView *disinfectView;
@property (weak, nonatomic) IBOutlet UIView *modeView;
@property (weak, nonatomic) IBOutlet UIView *videoView;
@property (weak, nonatomic) IBOutlet UIView *photoView;
@property (weak, nonatomic) IBOutlet UIView *autoBlock;

@property (weak, nonatomic) IBOutlet UIView *lightStick;
@property (weak, nonatomic) IBOutlet UIView *waterStick;
@property (weak, nonatomic) IBOutlet UIView *disinfectStick;
@property (weak, nonatomic) IBOutlet UILabel *lightSettingLabel;
@property (weak, nonatomic) IBOutlet UILabel *waterSettingLabel;
@property (weak, nonatomic) IBOutlet UILabel *disinfectSettingLabel;

@property (weak, nonatomic) IBOutlet UILabel *autoStateLabel;


+(void) updateSubscribeToken:(DeviceInfo *) info
                     success:(void (^)(NSNumber *loadSubID ,NSNumber *  levelSubID ,NSNumber * tempSubID
))success
                  interupted:(void (^)(NSInteger errorCode))interupted;

+(void) updateSubscribeID:(DeviceInfo *) info :(NSNumber *)loadSubID :(NSNumber * ) levelSubID :(NSNumber *) tempSubID;

@end
